package edu.tms.bean;

import java.util.*;


public class Course {
	/**
	 * 课程id
	 */
	private Integer courseId;

	/**
	 * 课程名称
	 */
	private String courseName;

	/**
	 * 授课教师id
	 */
	private Integer tchId;

	/**
	 * 所属专业名称
	 */
	private String majorName;

	/**
	 * 总课时
	 */
	private Integer courseAllPeriods;

	/**
	 * 上课时长 如：Java 4
	 */
	private Integer courseDuration;

	/**
	 * 创建时间
	 */
	private Date createTime;

	/**
	 * 课程公告
	 */
	private String courseNotice;
	
	/**
	 * 课程状态 1:正常 2:冻结
	 */
	private Integer courseState;

	/**
	 * 虚拟字段 教师名称
	 */
	private String tchName;
	
	private String className;

	public Course () {
		super();
	}

	public Course (Integer courseId,String courseName,Integer tchId,String majorName,Integer courseAllPeriods,Integer courseDuration,Date createTime,String courseNotice,Integer courseState) {
		this.courseId = courseId;
		this.courseName = courseName;
		this.tchId = tchId;
		this.majorName = majorName;
		this.courseAllPeriods = courseAllPeriods;
		this.courseDuration = courseDuration;
		this.createTime = createTime;
		this.courseNotice = courseNotice;
		this.courseState = courseState;
	}

	public Integer getCourseId() {
		return this.courseId;
	}
	

	public String getTchName() {
		return tchName;
	}

	public String getClassName() {
		return className;
	}

	public void setClassName(String className) {
		this.className = className;
	}

	public void setTchName(String tchName) {
		this.tchName = tchName;
	}

	public void setCourseId(Integer courseId) {
		this.courseId = courseId;
	}

	public String getCourseName() {
		return this.courseName;
	}

	public void setCourseName(String courseName) {
		this.courseName = courseName;
	}

	public Integer getTchId() {
		return this.tchId;
	}

	public void setTchId(Integer tchId) {
		this.tchId = tchId;
	}

	public String getMajorName() {
		return this.majorName;
	}

	public void setMajorName(String majorName) {
		this.majorName = majorName;
	}

	public Integer getCourseAllPeriods() {
		return this.courseAllPeriods;
	}

	public void setCourseAllPeriods(Integer courseAllPeriods) {
		this.courseAllPeriods = courseAllPeriods;
	}

	public Integer getCourseDuration() {
		return this.courseDuration;
	}

	public void setCourseDuration(Integer courseDuration) {
		this.courseDuration = courseDuration;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getCourseNotice() {
		return this.courseNotice;
	}

	public void setCourseNotice(String courseNotice) {
		this.courseNotice = courseNotice;
	}

	public Integer getCourseState() {
		return this.courseState;
	}

	public void setCourseState(Integer courseState) {
		this.courseState = courseState;
	}

	@Override
	public String toString() {
		return "Course[courseId=" + courseId+ ", courseName=" + courseName + ", tchId=" + tchId + ", majorName=" + majorName + ", courseAllPeriods=" + courseAllPeriods + ", courseDuration=" + courseDuration + ", createTime=" + createTime + ", courseNotice=" + courseNotice + ", courseState=" + courseState + "]";
	}


}

